package com.yyds.oneservice.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * Created by Enzo Cotter on 2022/12/12.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CmsSubjectVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("title")
    private String title;

    @ApiModelProperty(value = "专题主图")
    @TableField("pic")
    private String pic;

    @TableField("description")
    private String description;

    @TableField("comment_count")
    private Integer commentCount;

    @TableField("love_count")
    private Integer loveCount;

    @ApiModelProperty(value = "转发数")
    @TableField("forward_count")
    private Integer forwardCount;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty(value = "专题分类名称")
    @TableField("category_name")
    private String categoryName;
    /*关联用户信息*/
    @ApiModelProperty(value = "用户名")
    @TableField("nickname")

    private String nickname;
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(value = "头像")
    @TableField("icon")
    private String icon;
}
